.container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  margin-bottom: 32px;
}

.header h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.header p {
  color: var(--text-secondary);
  margin: 0;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profileCard {
  padding: 0;
  overflow: hidden;
}

.profileBadge {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* 黑夜模式支持 */
[data-theme="dark"] .profileBadge {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.profileBadge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
  pointer-events: none;
}

/* 黑夜模式下的覆盖层 */
[data-theme="dark"] .profileBadge::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.avatar {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.badgeContent {
  flex: 1;
  position: relative;
  z-index: 1;
}

.badgeHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.badgeName {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 黑夜模式下的文字阴影 */
[data-theme="dark"] .badgeName {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badgeUsername {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.badgeInfo {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.badgeInfoItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.badgeInfoLabel {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badgeInfoValue {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.pointsContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  position: relative;
}

.moneyButtonWrapper {
  position: relative;
  display: inline-block;
}

.moneyButton {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
  position: relative;
}

.tooltip {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 8px;
  transform: translateY(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: tooltipFadeIn 0.15s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.moneyButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.moneyButton:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}


.moneyButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.membershipBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #8b4513;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.5);
}

.loginInfoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.loginInfoItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loginInfoLabel {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.loginInfoValue {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.detailsCard {
  padding: 24px;
}

.section {
  margin-bottom: 16px;
}

.section:last-child {
  margin-bottom: 0;
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sectionTitle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sectionTitle h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.editButton {
  flex-shrink: 0;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.formField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formField label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  resize: vertical;
  min-height: 80px;
}

.textarea:disabled {
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color-alpha);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.statsCard {
  padding: 24px;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.statItem {
  text-align: center;
  padding: 16px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.statValue {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.statLabel {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .profileBadge {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .badgeHeader {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .badgeInfo {
    justify-content: center;
    gap: 16px;
  }
  
  .badgeInfoItem {
    min-width: 70px;
  }
  
  .formGrid {
    grid-template-columns: 1fr;
  }
  
  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .actions {
    flex-direction: column;
  }
}

